<?php
$a = range( 'H', 'N' );
foreach ($a as $value) {
    echo strtoupper( $value ) . '<br>';
}
foreach ($a as $value) {
    echo strtolower( $value ) . '<br>';
}